package com.dragon.pear.modules.trade.web.model.params.order;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 商品图片关联 数据排序请求参数
 * Explain:
 * 所有字段取值规则：-1 降序，0 不排序，1 升序
 */
@Schema(description = "商品图片关联 排序参数")
public class TradeGoodsImageOrderParam {
    @Schema(description = "ID", example = "1")
    private int id;
    @Schema(description = "商品编码", example = "1")
    private int code;
    @Schema(description = "图片URL", example = "1")
    private int imgUrl;
    @Schema(description = "图片类型", example = "1")
    private int type;

    // 无参构造方法
    public TradeGoodsImageOrderParam() {
    }

    // 全参数构造方法
    public TradeGoodsImageOrderParam(int id, int code, int imgUrl, int type) {
        this.id = id;
        this.code = code;
        this.imgUrl = imgUrl;
        this.type = type;
    }

    // 全参数create生成器
    public static TradeGoodsImageOrderParam create(int id, int code, int imgUrl, int type) {
        return new TradeGoodsImageOrderParam(id, code, imgUrl, type);
    }

    // 全参数of生成器
    public static TradeGoodsImageOrderParam of(int id, int code, int imgUrl, int type) {
        return new TradeGoodsImageOrderParam(id, code, imgUrl, type);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public TradeGoodsImageOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getCode() {
        return code;
    }

    public TradeGoodsImageOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getImgUrl() {
        return imgUrl;
    }

    public TradeGoodsImageOrderParam setImgUrl(int imgUrl) {
        this.imgUrl = imgUrl;
        return this;
    }

    public int getType() {
        return type;
    }

    public TradeGoodsImageOrderParam setType(int type) {
        this.type = type;
        return this;
    }

    // endregion Getter和Setter方法
}
